package com.simple.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName BillStatisticsDTO
 * @Author SimpleTree
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BillStatisticsDTO {
    private String title;
    private String subTitle;
    private List<String> legend;
    private List<BillValueDTO> billValueDTOs;

    public BillStatisticsDTO(String title, String subTitle) {
        this.title = title;
        this.subTitle = subTitle;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class BillValueDTO{
        private String name;
        private Double value;
    }
}
